package com.gl.goods.ui.main.mvp.home;

import com.gl.goods.base.BaseView;
import com.gl.goods.ui.main.bean.HomeAdvertisementListBean;

import java.util.Map;

import io.reactivex.Flowable;

/**
 * Time; 2020/11/13
 * Author: hmc
 * Description:
 */
public interface HomeContract {
    interface Model {
        /**首页轮播图*/
        Flowable<HomeAdvertisementListBean> getAdvertisementList();
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void showErrorMessage(String error_message);
        /**首页轮播图*/
        void getAdvertisementSuccess(HomeAdvertisementListBean bean);
    }

    interface Presenter {
        /**首页轮播图*/
        void getAdvertisementList();
    }
}
